package com.mzwf.cloud;

import com.mzwf.cloud.filter.PreRequestLogFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.netflix.zuul.filters.discovery.PatternServiceRouteMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableZuulProxy //声明zuul代理
public class ZuulFilterApplication {
	@Bean
    public PreRequestLogFilter preRequestLogFilter(){
    	return new PreRequestLogFilter();
	}
	public static void main(String[] args) {
		SpringApplication.run(ZuulFilterApplication.class, args);
	}
}
